﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="TMA.MODEL"
                   namespace="TMA.MODEL.Entity">

  <class name="Visit" table="TWA.Tbl_Visitas">
    <id name="Id_Visit" column="Consecutivo" type="int">
      <generator class="identity"/>
    </id>
    <property name="Id_Visitor" column="IdVisitante" type="decimal" />
    <property name="DateCreateTransaction" column="Fecha" type="datetime" />
    <property name="Id_Functionary" column="RecibeVisita" type="float" />
    <property name="VisitDescription" column="MotivoVisita" type="string" />
    <property name="ElementsToGetIn" column="ElementosIngresa" type="string" />
    <property name="Activity" column="StsActividad" type="char" />
    <property name="InitialDate" column="FechaInicial" type="datetime" />
    <property name="InitialHour" column="HoraInicial" type="datetime" />
    <property name="FinalDate" column="FechaFinal" type="datetime" />
    <property name="FinalHour" column="HoraFinal" type="datetime" />
    <property name="VisitDuration" column="DuracionVisita" type="string" />
    <property name="Id_Usuario" column="IdUsuario" type="int" />
    <property name="Id_Area" column="area" type="int" />
    <property name="Tracing" column="Seguimiento" type="string" />
    <property name="OutEquipment" column="ConfirmaSalidaEquipos" type="boolean" />
    <property name="ScheduledVisit" column="CitaProgramada" type="boolean" />
    <property name="BarCode" column="CodigosBarras" type="string" />
    <property name="Provider" column="Proveedor" type="float" />
    <property name="DateCreateRegistration" column="FechaCrea" type="datetime" />
    <property name="DateModifyRegistration" column="FechaModifica" type="datetime" />
    <property name="Id_UserCreateRegistration" column="UsuarioCrea" type="string" />
    <property name="Id_UserModifyRegistration" column="UsuarioModifica" type="string" />
  </class>

</hibernate-mapping>